www.gusucode.com > wxApp PHP版微信小程序CMS系统 v1.0PHP源码程序 > wxApp PHP版微信小程序CMS系统 v1.0/wxAppCMS_v1.0.0/wxAppCMS_v1.0.0/iPHP/core/template/plugins/function.in_array.php
<?php /** * template_lite in_array plugin * * Type: function * Name: in_array * Purpose: Checks to see if there is an item in the array that matches and returns the returnvalue if true. */ function tpl_function_in_array($params, &$tpl) { extract($params); if (is_array($array)) { if (in_array($match, $array)) { return $returnvalue; } } }